package com.neu.fenli2023623.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName User
 */
@ApiModel("用户类")
@Data
public class User implements Serializable {
    @ApiModelProperty("用户id")
    private Integer id;
    @ApiModelProperty("用户名")
    private String name;
    @ApiModelProperty("用户账号")
    private String account;
    @ApiModelProperty("用户的角色")
    private String role;
    @ApiModelProperty("用户电话")
    private String phoneNum;
    @ApiModelProperty("用户状态")
    private Integer state;
    @ApiModelProperty("用户创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;
    @ApiModelProperty("用户密码")
    private String pwd;

    private static final long serialVersionUID = 1L;
}